<?php

use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        // $this->call(UsersTableSeeder::class);
        Model::unguard();

        // 指令php artisan migrate:refresh --seed
        // 填充用户数据
        $this->call(UsersTableSeeder::class);

        // 微博数据 php artisan db:seed --class=StatusesTableSeeder
        $this->call(StatusesTableSeeder::class);

        // 粉丝关系数据
        $this->call(FollowersTableSeeder::class);

        Model::reguard();
    }
}
